﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ThietBiSo.Models;
using ThietBiSo.LinQDB;
using ThietBiSo.UrlReview;

namespace ThietBiSo.Controllers
{
    public class danhmucspController : ApplicationController
    {
       

        MSanPham msp = new MSanPham();
        MDanhMuc mdm = new MDanhMuc();
        SEOUrl seo = new SEOUrl();
        #region website
       
        public ActionResult index(string id)
        {
            ViewData["title"] =mdm.GetTitleByMa(int.Parse(seo.CatChuoi(id)));
            ViewData["sanphams"] = msp.GetListSPByMaDM(int.Parse(seo.CatChuoi(id)));
            return View();
        }

        #endregion


    }
}
